<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div id="u">

<dl class="top_u_dd">
	<s:if test="#session.username == null">
	<dd>
    <a id="menu" href="user/loginPage.action" name="login"><s:text name="_Login"/></a>
    </dd>
    <dt>|</dt>
    <dd>
    <a id="menu" href="user/registerPage.action" name="regist"><s:text name="_Register"/></a>
    </dd>
   <dt>|</dt>
	 	<dd><a href="javascript:void(0);" onclick="to_advance_search()"><s:text name="_AdvancedSearch"/></a></dd>
	</s:if>
	<s:else>
	
	<s:bean var="user_auth" name="com.prp.struts.bean.UserAuth">
		<s:param name="username" value="#session.username"/>
	</s:bean>
	<dd>
	<label id = "menu"><s:property value="#session.username"/></label>
    	</dd>
    	<dt>|</dt>
    	<dd>
    	<a id = "menu" href="user/changePasswordPage.action" name="login"><s:text name="_MySpace"/></a>
    	</dd>
    	<s:if test="#user_auth.is_UserAdmin">
 	  	<dt>|</dt>
 	  	<dd>
    	<a id = "menu" href="admin/userlist.action" name="regist"><s:text name="_prUserManagement"/></a>
    	</dd>
    	</s:if>
    	
    	<s:if test="#user_auth.is_FileAdmin">
      	 	<dt>|</dt>
      	<dd>
		<a id="menu" href="file/file_list_admin.action" name="ad_search" ><s:text name="_FileManagement"/></a>
		</dd>
		</s:if>
		 	<dt>|</dt>
	 	<dd><a href="javascript:void(0);" onclick="to_advance_search()"><s:text name="_AdvancedSearch"/></a></dd>
         	<dt>|</dt>
		<dd>
		<a id = "menu" href="user/logout.action" name="ad_search" ><s:text name="_prquit"/></a> 
		</dd>
	</s:else>
	 	
	 	<dt>|</dt>
	<dd>
	
		<s:include value="/langselect.jsp"/>

	</dd>
	</dl>
 </div>	
  
 
  <p id="lm"></p>
  <div id="m">
  	<p id="lg"><img src="images/LogoMaker.jpg" width="270" height="130" /></p>
    <p id="lm"></p>
    
	<div id="fm">
    	<s:form namespace="/file" action="searchFile" method="get">
			<s:hidden name="pageSize" value="10"></s:hidden>
			<s:hidden name="pageNow" value="1"></s:hidden>
			<s:textfield name="searchInfo" id="kw" maxlength="100"/>
        	
            <span class="btn_wr">
      	      	<s:submit  value="%{getText('_Search')}" id="su" cssClass="btn" onmousedown="this.className='btn btn_h'" onmouse="this.className='btn'"/>
            	
            </span>
            
        </s:form>
             </div>
   
    <div id="ad_search" style="display: none">
    	<s:include value="/advance_search.jsp"></s:include>
    	<div style="clear: both"></div>
    </div>
    
    <p id="lm"></p>
    <div style="width: 720px; opacity: 1; " id="s_mod_topsearch" class="mod-sc s-mod" data-modid="6" att_baidu_fx_move="TANGRAM__b">
        <div class="s-container"> 
        	<div class="s-title" id="s_mod_topsearch_titleBar" style=""> 
                <span class="s-topsearch-title">&nbsp;<s:text name="_CountryList"/></span>
                
            </div>
            <s:action name="countryList" namespace="/file" executeResult="true"></s:action>
           
          </div>
    </div>
    <div>
    	<p id="cp">
    		©2011 G Search 
       	 	<a href="">使用前必读</a>
        	<a href="" target="_blank">京ICP证030173号</a>
    	</p>
    </div>
  </div>